package fms.core.uplinkmsg;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午1:48
 * To change this template use File | Settings | File Templates.
 */

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/**
 *  上行报文协议
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class UplinkMessage {
    @XmlAttribute(name="type")
    private String skylinkType;// SkyLink协议的类型
    @XmlAttribute(name="version")
    private String version;
    @XmlElement(name="head")
    private UplinkMsgHead head;   // 头节点
    @XmlElement(name="sendRules")
    private SendRules sendRules;
    @XmlElement(name="data")
    private UplinkMessageData data;
    @XmlElement(name="msg")
    private String msg;           // 原始报文// 带报头的上行原始报文，可以直接发送给网关上发的报文。


    public UplinkMessage()
    {
        skylinkType = "UPLINK";
        version = "3.0";
    }

    public String getSkylinkType() {
        return skylinkType;
    }

    public void setSkylinkType(String skylinkType) {
        this.skylinkType = skylinkType;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public UplinkMsgHead getHead() {
        return head;
    }

    public void setHead(UplinkMsgHead head) {
        this.head = head;
    }

    public UplinkMessageData getData() {
        return data;
    }

    public void setData(UplinkMessageData data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public SendRules getSendRules() {
        return sendRules;
    }

    public void setSendRules(SendRules sendRules) {
        this.sendRules = sendRules;
    }
}
